import request from '@/utils/request'

// 查询商户配置列表
export function listMchConfig(query) {
  return request({
    url: '/system/mchConfig/list',
    method: 'get',
    params: query
  })
}

// 查询商户配置详细
export function getMchConfig(id) {
  return request({
    url: '/system/mchConfig/' + id,
    method: 'get'
  })
}

// 新增商户配置
export function addMchConfig(data) {
  return request({
    url: '/system/mchConfig',
    method: 'post',
    data: data
  })
}

// 修改商户配置
export function updateMchConfig(data) {
  return request({
    url: '/system/mchConfig',
    method: 'put',
    data: data
  })
}

// 删除商户配置
export function delMchConfig(id) {
  return request({
    url: '/system/mchConfig/' + id,
    method: 'delete'
  })
}
